home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 20 / develop Issue 20 code / Scripting the Finder.sea / Scripting the Finder / Finder Snapshot / SaveWindows.h / SaveWindows.h
Encoding:
C/C++ Source or Header  |  1994-10-05  |  1.2 KB  |  34 lines  |  [TEXT/MMCC]

  1. #ifndef __SAVEWINDOWS__
  2. #define __SAVEWINDOWS__
  3.  
  4. #include "AppleEventUtilities.h"
  5.  
  6.  
  7. typedef struct _openwindowInfo
  8. {
  9.     short            fAliasToOwnerID;
  10.     DescType        fWindowClass;
  11.     Rect            fWindowBounds;
  12. } OpenWindowInfo, *OpenWindowInfoPtr, **OpenWindowInfoHandle;
  13.  
  14. #define kAliasToWindowOwnerType        'wina'
  15. #define kOpenWindowInfoType            'winf'
  16.  
  17.  
  18. void FindPSNbyTypeAndSig(ProcessSerialNumber* psn, OSType type, OSType sig);
  19. TDescriptor GetAddressOfFinder(void);
  20. TDescriptor MakeSpecifierForSelection(void);
  21. TDescriptor MakeSpecifierForIndexedItem(DescType desiredClass, long index, TDescriptor ofSpecifier);
  22. TDescriptor MakeSpecifierForFrontWindow(void);
  23. TDescriptor MakeSpecifierForPropertyOfSpecifier(DescType property, TDescriptor ofSpecifier);
  24. TDescriptor MakeSpecifierForPropertyOfSelection(DescType property);
  25. TDescriptor GetFinderSelection(DescType desiredType);
  26. long CountItemsInContainer(DescType desiredClass, TDescriptor inContainer, TDescriptor target);
  27. void SetWindowInformation(Handle aliasToWindowOwner, OpenWindowInfo& windowInfo);
  28. void RestoreAllWindowInformation(void);
  29. void SaveWindowInformation(Handle aliasToWindowOwner, OpenWindowInfo& windowInfo);
  30. void SaveWindowsAndPositions(void);
  31. void UpdateChangedObject(FSSpec& itemsFSSpec);
  32.  
  33. #endif
  34.